#define _CRT_SECURE_NO_WARNINGS 1
#include "HeapSort.h"


void printArray(int* array, int arraySize) {
	assert(array);
	int i = 0;
	printf("[ ");
	for (i = 0; i < arraySize; i++) {
		printf("%d ", array[i]);
	}
	printf("]\n");
}

int main() {
	int nums[] = { 3, 5, 2, 7, 8, 6, 1, 9, 4, 0 };
	int numsSize = sizeof(nums) / sizeof(nums[0]);
	HeapSort(nums, numsSize);
	printArray(nums, numsSize);
	return 0;
}